import request from '@/plugin/axios'

export function queryMenus (data) {
  return request({
    url: '/v1/menu/list',
    method: 'post',
    data
  })
}

export function addMenu (data) {
  return request({
    url: '/v1/menu/add',
    method: 'post',
    data
  })
}

export function updateMenu (id, data) {
  return request({
    url: `/v1/menu/updateById/${id}`,
    method: 'post',
    data
  })
}

export function removeMenu (data) {
  return request({
    url: `/v1/menu/deleteByIds`,
    method: 'post',
    data
  })
}
